package cn.smile.business.msg;

import cn.smile.bean.dto.msg.MsgConDTO;
import cn.smile.bean.entity.msg.EmailTemplate;
import cn.smile.commons.domain.IBaseService;
import cn.smile.commons.enums.msg.MailCodeEnum;

/**
 * @author smile-jt
 */
public interface IEmailTempService extends IBaseService<EmailTemplate> {

    /**
     * 获取邮件内容
     *
     * @param codeEnum 消息Code
     * @param entity   消息内容填充对象
     * @return 消息内容对象
     */
    MsgConDTO getMailCon(MailCodeEnum codeEnum, Object entity);
}
